home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr25 / gaboot.zip / BOOTDISK.TXT
Text File  |  1993-03-17  |  17KB  |  468 lines

  1.  
  2.  
  3.                      How to create a GA Boot Disk
  4.                      for OS/2 version 2.0 (6.307)
  5.                            by Daryl Caudill
  6.                              May 16, 1992
  7.  
  8.  
  9. CREDITS:
  10.  
  11. Thank you to Morton F. Kaplon for starting all of this.  Morton
  12. created the first version of this, entitled:
  13.  
  14. "Creating a Boot disk for OS/2 GA version for FAT FILE SYSTEM."
  15.  
  16. Morton created the first version of this back in the BETA versions
  17. of OS/2 v2.0.  He later updated his document when GA came out.
  18.  
  19. At the time, Morton wasn't running HPFS, so he hadn't included it
  20. in his write-up.  I started from the base he had gotten to, which
  21. was 36 files, and managed to hack it down to 28 files.
  22.  
  23. I've added support for HPFS, as well as taking in consideration
  24. whether you have a math co-processor, a PS/2 versus a clone pc,
  25. and a more thorough discussion on a file-by-file basis.
  26.  
  27. DISCLAIMER:
  28.  
  29. I don't work for IBM, own any IBM stock, or have any other vested
  30. interest in IBM other than being an avid fan of the OS/2 product.
  31. All statements in this document are solely my opinion, and chances
  32. are I'm probably wrong on several issues.  I had to make educated
  33. (or lack of) guesses on many items, especially when it comes down
  34. to figuring out what each file is actually used for.
  35.  
  36. I'm sure this document will experience several corrective versions.
  37. I've pointed out in several places where a configuration could
  38. (hopefully) be replaced by something more efficient.
  39.  
  40. If you find you can't create a boot disk which will work on your
  41. computer, send me a message via the OS/2 Support Internet echo,
  42. or post a message to me on Pete Norloff's OS/2 Shareware BBS in
  43. Fairfax, Virginia 703/385-4325.
  44.  
  45. I have only tested this on two computers (work and home), so I'm
  46. sure most people will have different configurations.  For now,
  47. I'm out of time to continue this, as you'll see by some blanks
  48. needing filled in.
  49.  
  50. Good Luck!
  51.  
  52.  
  53.  
  54. SECTION 1:  INTRODUCTION
  55.  
  56.  
  57. My intention was to create a boot disk with the absolute minimum
  58. number of files and config.sys statements.  I wanted to be able
  59. to create a 5-1/4" boot disk and have done so.  After doing that,
  60. I wanted to begin adding necessary/desirable features and still
  61. keep it on one disk.
  62.  
  63. The 5-1/4" disk has minimal features and has several exceptions,
  64. meaning your computer must have this or that, or you can't
  65. create a 5-1/4" disk.
  66.  
  67. The 3-1/2" disk can hold anything, short of running CHKDSK with
  68. HPFS support all from one disk.  This is not a problem though.
  69.  
  70. If your computer has two floppy disk drives, with one being high-
  71. density, then you can build a two-disk boot with ALL the features
  72. covered in this write-up, including HPFS.
  73.  
  74. If your computer only has ONE high-density floppy disk drive then
  75. you can build a custom boot disk for:
  76.  
  77.      3-1/2" 1.44 Meg floppy disks NO PROBLEM!
  78.  
  79.      5-1/4" 1.2 Meg floppy disks possible with the following conditions:
  80.          - No HPFS support
  81.          - Your pc MUST have a 80387 co-processor
  82.  
  83.  
  84.  
  85. SECTION 2:  CREATING THE BOOT DISK
  86.  
  87.  
  88. I.  PREPARING A FLOPPY DISK
  89.  
  90. All of the files you will need are located on the Installation Disk
  91. and Disk 1.  The easiest way to do this is to create a temporary directory
  92. on your hard disk and copy all the needed files into this directory.
  93. If it turns out you need additional files placed on your boot disk,
  94. you can copy them from this directory, instead of having to pull out
  95. the original diskettes again.
  96.  
  97. The following steps will get you started:
  98.  
  99. 1.  Make a directory on your hard disk:  MD BOOTDISK
  100. 2.  Put the Installation disk in drive A:, and copy these files into
  101.     the BOOTDISK directory:  SYSINSTX.COM, OS2KRNLI, OS2LDR, OS2LDR.MSG
  102. 3.  Type:  RENAME OS2KRNLI OS2KRNL
  103. 4.  Put Disk 1 in drive A:, and copy all files into the BOOTDISK directory.
  104. 5.  Put a high-density disk in drive A: and format it.
  105. 6.  From the BOOTDISK directory, type:  SYSINSTX A:
  106.  
  107. The disk is now prepared.  The next session discusses which files
  108. you need to copy to the boot disk from the BOOTDISK directory.
  109.  
  110.  
  111. II.  COPYING FILES TO THE BOOT DISK
  112.  
  113. The following configuration is the absolute minimum (for now) that I
  114. could hack down to.  It makes several assumptions and is just an
  115. example configuration.  Your configuration could most likely be
  116. different (more files required).
  117.  
  118. This configuration is a complete bootable disk, based on the following:
  119.    - your pc is a clone (non PS/2)
  120.    - your pc has a math co-processor installed (80387 or 80486)
  121.    - your pc has a standard ISA-compatible hard disk controller
  122.    - your pc doesn't have any HPFS partitions
  123.  
  124.                            Error
  125.                      Load  if not  Lock
  126. Filename Ext   Size  when  found   open  Description/Purpose
  127. -------- --- ------  ----  ------  ----  -----------------------------------
  128. BKSCALLS DLL    401                 Yes  HIIK
  129. BMSCALLS DLL    398                 Yes  HIIK
  130. BVHINIT  DLL   9203                 Yes  HIIK
  131. BVSCALLS DLL    454                 Yes  HIIK
  132. CLOCK01  SYS   3666     2            No  Clock/Timer driver
  133. CMD      EXE  87552 *                No  OS/2 command interpreter
  134. CONFIG   SYS    181                  No  dah!
  135. COUNTRY  SYS  24604     3            No  HIIK
  136. DOSCALL1 DLL  87884                 Yes  HIIK
  137. HARDERR  EXE  14436                 Yes  HIIK
  138. IBM1FLPY ADD  24026 *                No  floppy disk controller driver
  139. IBMINT13 I13   9564 *                No  generic ISA disk controller driver
  140. KBD01    SYS  29013     2            No  Keyboard driver
  141. KBDCALLS DLL    858                 Yes  HIIK
  142. MOUCALLS DLL   1010                 Yes  HIIK
  143. MSG      DLL    477     3     3      No  HIIK
  144. NAMPIPES DLL    711     3     2      No  HIIK
  145. NLS      DLL    465     3     2      No  HIIK
  146. OS2CHAR  DLL  56320                 Yes  HIIK
  147. OS2DASD  DMD  31994 ?   3     4      No  Disk Device driver?
  148. OS2KRNL      716044     1     1      No  BOOT STRAP
  149. OS2LDR        32256     1     1      No  BOOT STRAP
  150. OS2LDR   MSG   8440     1     1      No  BOOT STRAP
  151. QUECALLS DLL  14994                 Yes  HIIK
  152. SCREEN01 SYS   1441           4      No  Screen driver
  153. SESMGR   DLL  31256                 Yes  HIIK
  154. SYSINST1 EXE   4224                 Yes  CONFIG protshell=sysinst1.exe
  155. VIOCALLS DLL   1825     3     2      No  HIIK
  156.  
  157. On a 5-1/4" disk, CHKDSK will give you:
  158.  
  159.             1213952 bytes total disk space.
  160.                1536 bytes in 1 hidden files.
  161.             1199104 bytes in 28 user files.
  162.                4096 bytes in extended attributes.
  163.                9216 bytes available on disk.
  164.  
  165.                 512 bytes in each allocation unit.
  166.                2371 total allocation units.
  167.                  18 available allocation units on disk.
  168.  
  169. As you can see, it's just _squeaking_ by on a 5-1/4" disk, with a
  170. whopping 9216 bytes to spare!
  171.  
  172. On a 3-1/2" disk, CHKDSK will give you:
  173.  
  174.             1457664 bytes total disk space.
  175.                1536 bytes in 1 hidden files.
  176.             1199104 bytes in 28 user files.
  177.                4096 bytes in extended attributes.
  178.              252928 bytes available on disk.
  179.  
  180.                 512 bytes in each allocation unit.
  181.                2847 total allocation units.
  182.                 494 available allocation units on disk.
  183.  
  184. With 252928 bytes available, you can configure a 3-1/2" disk with
  185. everything you want, short of the UHPFS.dll file.  This file will go
  186. on a second disk along with the CHKDSK.com file (discussed later).
  187.  
  188.  
  189. KEY DEFINITIONS:
  190.  
  191. */?:
  192. This file will change, depending on the configuration of your
  193. computer.
  194.  
  195. HIIK:
  196. Heck if I know.  I can guess, but don't know the appropriate
  197. file description.
  198.  
  199. Loads When:
  200. 1 - at power-up time, typically known as the boot strap
  201. 2 - at the OS/2 graphical logo with copyright notice
  202. 3 - screen clears and says:  Loading, please wait...
  203. 4 - screen clears with a cursor in the upper-left hand corner
  204.  
  205. Error message if the file isn't found by the system (see Appendix A for
  206. a description of these error messages):
  207. 1 - !SYSxxxx error message
  208. 2 - LIBPATH error (states which filename is missing)
  209. 3 - LIBPATH error (no filename)
  210. 4 - The system cannot find the file "????????.???"
  211. 5 - The system cannot find the file "A:\COUNTRY.SYS"
  212.  
  213. Lock Open:
  214. After the system is finished booting, these files remain locked open
  215. by the system.  I used ERASE A:\*.* and these were the files which
  216. couldn't be deleted because they were locked open.
  217.  
  218.  
  219.  
  220. III.  CONFIG.SYS FILE CONTENTS
  221.  
  222. This is the absolute minimum CONFIG.SYS file you can have on your
  223. GA boot disk.  I have a feeling both the protshell and os2_shell
  224. can be replaced with something smaller.  The buffers should probably
  225. be increased, especially since the disk cache is not being used.
  226.  
  227. libpath=\;
  228. buffers=32
  229. protshell=sysinst1.exe
  230. set os2_shell=cmd.exe
  231. protectonly=yes
  232. set path=\;
  233. set dpath=\;
  234. basedev=ibm1flpy.add    ** Replace this file
  235. basedev=ibmint13.i13    ** Replace this file
  236. basedev=os2dasd.dmd
  237.  
  238. ** Replace this file:
  239. These two files are the floppy and hard disk controller files.  You
  240. should check the final CONFIG.SYS file on your hard disk to see
  241. which files your system actually uses and use those.  See the
  242. discussion below in Section 3 (IBM PS/2 versus non-PS/2 drivers).
  243.  
  244.  
  245.  
  246. SECTION 3:  REQUIRED CONSIDERATIONS
  247.  
  248.  
  249. I.  MATH CO-PROCESSOR SUPPORT
  250.  
  251. If your computer does NOT have a math co-processor, then the system
  252. will require the NPXEMLTR.DLL file (25280 bytes) be present on your
  253. boot disk.  This file is too large for the 5-1/4" boot disk--sorry!
  254.  
  255. No statement is required in the CONFIG.SYS file.  The file is loaded
  256. in the third phase (Loading, please wait...).  If the file is not
  257. found, you'll get the fifth error:
  258.  
  259.   The system cannot find the file "A:\COUNTRY.SYS"
  260.  
  261. Yea, I know.  It has nothing to do with that file, yet several
  262. files produce this error message when missing.
  263.  
  264.  
  265. II.  IBM PS/2 versus NON-PS/2 DRIVERS
  266.  
  267. If you look in the CONFIG.SYS file on the original disk 1, you'll
  268. see the system loads the floppy and hard disk drivers for both the
  269. PS/2 and non-PS/2 machines.  Depending on which machine you have, you
  270. do NOT need the other machines drivers loaded.  If you look in the final
  271. CONFIG.SYS file located on your hard disk, you'll see it only loads
  272. the files needed for your machine.
  273.  
  274. These are the floppy disk drivers included on disk 1:
  275.  
  276.     IBM1FLPY.ADD  24026    Floppy disk controller driver
  277.     IBM2FLPY.ADD  12997    IBM floppy disk controller driver
  278.  
  279. These are the hard disk drivers included on disk 1:
  280.  
  281.     IBMINT13.I13   9564    Generic ISA disk controller driver
  282.     IBM1S506.ADD  12908    ST-506 compatible disk controller driver
  283.     IBM2SCSI.ADD  15780    IBM Generic SCSI disk controller driver
  284.     IBM2ADSK.ADD  10724    IBM ABIOS DASD Device Driver
  285.  
  286. Both systems I've tried this on are clones with an IDE hard disk
  287. controller.  Although the hard disk CONFIG.SYS file ends up using
  288. only the IBM1S506.ADD file, I've found it can be replaced with
  289. the IBMINT13.I13 file.  They seem to be interchangable on my
  290. system.  I'm assuming the IBM1S506 file is faster/better than the
  291. generic file, but for a boot disk I used the generic driver because
  292. its a smaller file.  Obviously, whatever your hard disk CONFIG.SYS
  293. file ends up with, you should leave alone! (unless of course a
  294. problem requires you to change it).
  295.  
  296.  
  297.  
  298. SECTION 4:  NON DISK-CONSUMING OPTIONS
  299.  
  300.  
  301. These options are not required to be in the CONFIG.SYS file (meaning
  302. the system will still come up without them).  Since they don't require
  303. any additional files to be added to the disk, the services they offer
  304. are worth the few bytes they take up in the CONFIG.SYS file.
  305.  
  306.  
  307. I.  SET KEYS ON
  308.  
  309. This option enables the command-line history function, which remembers
  310. the commands you enter at the OS/2 command prompt.  This has the same
  311. function as the DOS DOSKEY feature.  The command line history is stored
  312. in a 64KB buffer.
  313.  
  314.  
  315. II.  PAUSEONERROR=NO
  316.  
  317. If you use this line item, you must keep it equal to NO.  I've tried
  318. to define the response you'll get from the system, depending on the
  319. problem encountered.  The reason I suggest this option is because
  320. the opposite should NOT be selected.
  321.  
  322. If you set PAUSEONERROR=YES, and the system does encounters a problem,
  323. the system will attempt to load the ________.___ file, which
  324. contains the error messages.  Since this file is too large to be
  325. placed on your boot disk, you'll get an error message stating
  326. the system can't find the _________ file. (I forgot to write
  327. down the file name, but it's a big file).
  328.  
  329.  
  330. III.  IOPL=YES
  331.  
  332. I don't know what this is, but it doesn't seem to cause any problems.
  333. This is something which is in the original CONFIG.SYS and ends up
  334. in your final CONFIG.SYS file (at least it did in mine).
  335.  
  336.  
  337. IV.  MEMMAN=NOSWAP
  338.  
  339. This option tells the system that a swap file is not to be used, but
  340. if you do not include this and do not include a CONFIG.SYS line which
  341. defines the swap file, you'll have no problem.
  342.  
  343.  
  344. V.  DISKCACHE=64,LW
  345.  
  346. This option enables the disk cache with lazy writes.  Since you will
  347. most likely not be running applications off your hard disk when
  348. booting from a floppy, this line isn't necessary.
  349.  
  350.  
  351.  
  352. SECTION 5:  DISK-CONSUMING OPTIONS
  353.  
  354.  
  355. Each of these options requires an additional file be placed on the
  356. boot disk.  Depending on how much disk space you have available and
  357. what features you want, you can selectively include these on your
  358. boot disk.
  359.  
  360.  
  361. I.  DEVICE=PRINT01.SYS
  362.  
  363. This option requires the PRINT01.SYS file (8934 bytes) be on your
  364. boot disk.  With this option enabled, you can print to the standard
  365. print device on your computer.  I don't know which printers/configurations
  366. will work and which don't.  My EPSON off of LPT1 works fine.  I don't
  367. know if non-ASCII (i.e. PostScript) printers will work.
  368.  
  369.  
  370. II.  CODEPAGE=850
  371.      DEVINFO=KBD,US,KEYBOARD.DCP
  372.  
  373. These two statements go together in the CONFIG.SYS file.  If you have
  374. the CODEPAGE entry, but no DEVINFO entry, you'll get a SYSxxxx message,
  375. but the system will continue to boot normally.
  376.  
  377. This requires the KEYBOARD.DCP file (5177 bytes) be located on the
  378. GA boot disk.
  379.  
  380.  
  381. III.  DEVICE=\TESTCFG.SYS
  382.  
  383. I'm not sure what this does.  This requires the TESTCFG.SYS file (3216
  384. bytes) be located on the GA boot disk.
  385.  
  386.  
  387. IV.  IFS=HPFS.IFS /c:64
  388.  
  389. This statement enables the system to access any HPFS partitions.
  390. Without it loaded, trying to access an HPFS drive will give:
  391.  
  392. SYSxxxx error:  Cannot access the device specified (or whatever...)
  393.  
  394. This option requires the HPFS.IFS file (125466 bytes) be located on
  395. the GA boot disk.  Obviously, the size of this file prevents it from
  396. being installed on a 5-1/4" boot disk.  However, a 3-1/2" boot disk
  397. has plenty of space for it.
  398.  
  399.  
  400.  
  401. SECTION 6:  TWO-DISK BOOT CONFIGURATION
  402.  
  403.  
  404. I.  3-1/2" A: DRIVE
  405.  
  406. If you have an HPFS partition and desire HPFS support, then your
  407. going to end up with TWO floppys.  For a 3-1/2" floppy, the first
  408. will be a complete boot disk, taking you to the OS/2 prompt.  The
  409. second 3-1/2" disk should contain CHKDSK.com (68656 bytes) and
  410. UHPFS.dll (178896).  You can add other files such as a text editor,
  411. although this could reside on the hard disk, since the hard disk
  412. is available (unless you need to fix via CHKDSK, which is why you
  413. booted via floppy in the first place!).
  414.  
  415.  
  416. II.  5-1/4" A: DRIVE
  417.  
  418. For the 5-1/4" method, you'll need two floppy disk drives.  You'll
  419. need to put some of the files on the second floppy disk, and modify
  420. the config.sys file path, dpath, and/or libpath statements so the
  421. system can find the files.  I haven't tried this option yet, but
  422. it should be pretty straight forward.
  423.  
  424.  
  425.  
  426. APPENDIX A:  ERROR MESSAGES
  427.  
  428.  
  429. I.  LIBPATH ERROR
  430.  
  431. You will receive the following error message if a needed DLL file
  432. is missing from your boot disk(s).  The underline represents the
  433. filename the system was looking for.  Sometimes the system does
  434. NOT pull a file name there--leaving you to figure out which file
  435. is missing!
  436.  
  437.  
  438.    The system cannot load the dynamic link library ________
  439.    which is need to start the system.
  440.  
  441.    Install the dynamic link library in the root directory of
  442.    the startup drive or in the directory specified in the
  443.    LIBPATH command in the CONFIG.SYS file.
  444.  
  445.    The system is stopped.
  446.  
  447.    Correct the preceding error and restart the system.
  448.  
  449.  
  450. II.  FILE NOT FOUND ERROR
  451.  
  452. You will receive the following error message usually when you have
  453. a statement in the CONFIG.SYS which references a file that does
  454. not exist.  One exception is when certain system files are missing
  455. (which are not referenced in the CONFIG.SYS file) you will receive
  456. this error message, with the missing filename always being COUNTRY.SYS
  457.  
  458.    The system cannot find the file "________.___".  This device
  459.    driver, program, or data file is not located in the default
  460.    path or the path specified for it in the CONFIG.SYS file.
  461.    Install this file in the correct directory, or correct the
  462.    appropriate CONFIG.SYS file statement.
  463.  
  464.    The system is stopped.
  465.  
  466.    Correct the preceding error and restart the system.
  467.  
  468.